package com.graden.background.repository.systoken.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * token信息类
 * </p>
 *
 * @author 
 * @since 2019-03-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SysToken implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * token
     */
    @TableField(strategy = FieldStrategy.IGNORED) //修改时忽略null 和空值
    private String token;

    /**
     * bip账号
     */
    private String bipCode;

	/**
	 * token刷新时间
	 */
	@TableField(strategy = FieldStrategy.IGNORED) //修改时忽略null 和空值
	private LocalDateTime refreshTime;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    /**
     * 状态：0：不可用，1：可用
     */
    private Boolean status;


}
